import request from '@/utils/request'

// 查询字典数据列表
export function listDataApi(data) {
  return request.post('/system/dict-data/list',data)
}


// 查询字典数据详细
export function infoDataApi(dictId) {
  return request.get('/system/dict-data/info',{ id: dictId })
}

// 新增字典数据
export function addDataApi(data) {
  return request.post('/system/dict-data/add', data)
}

// 修改字典数据
export function editDataApi(data) {
  return request.post('/system/dict-data/edit', data)
}

// 删除字典数据
export function delDataApi(typeId) {
  return request.post('/system/dict-data/delete', { id: typeId })
}

// 根据类型标识获取字典数据列表
export function infoDataByTypeApi(dictType) {
  return request.get('/system/dict-data/get-data-list', { type: dictType })
}
